package com.itheima.thread.utils.semaphore.demo01;

public class SemaphoreThreadDemo01 {

    public static void main(String[] args) {

        // 创建SemaphoreThread任务类对象
        SemaphoreThread semaphoreThread = new SemaphoreThread() ;

        // 启动5个线程
        for(int x = 0 ; x < 5 ; x++ ){
            new Thread(semaphoreThread).start();
        }

    }

}
